package br.cns;

import static br.cns.MetricHelper.getInstance;
import static br.cns.TMetric.CLUSTERING_COEFFICIENT;

import org.junit.Test;
public class ClusteringCoefficientTest {

	@Test
	public void testCalculate() {
		Integer[][] net = new Integer[][]{
                                            {0,1,1,1},
                                            {1,0,0,1},
                                            {1,0,0,1},
                                            {1,1,1,0}};
                System.out.println((getInstance().calculate(CLUSTERING_COEFFICIENT, net)));
		assert((int)((getInstance().calculate(CLUSTERING_COEFFICIENT, net))*10000) == 8333);
	}

}